cluster.name: {{ item.cluster_name }} 
node.name: {{ ansible_hostname }}
path.data: {{ middleware_path }}/elasticsearch-{{ item.hport }}/data
path.logs: {{ middleware_path }}/elasticsearch-{{ item.hport }}/logs
network.host: {{ ansible_ssh_host }}
http.port: {{ item.hport }}
discovery.zen.ping.unicast.hosts: 
{% for host in groups['elasticsearch'] -%} 
        - {{ hostvars[host]['ansible_ssh_host'] }}:{{ item.tport }}
{% endfor %}
discovery.zen.minimum_master_nodes: {{ groups['elasticsearch'] | length //2+1 }}
http.cors.enabled: true
http.cors.allow-origin: "*"
